/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.Database;

import java.sql.SQLException;

/**
 *
 * @author sarunaskujalis
 */
public class MessagesRegister {
    
    private Database db;

    public MessagesRegister(Database db) {
        this.db = db;
    }
    
    public void saveMessage(String msg) throws SQLException {
            db.statement.executeUpdate("INSERT INTO messages (MText) VALUES ('"+msg+"')");
        }
}
